package week02;

public class Main03 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());
		String ids[] = new String[n];
		for (int i = 0; i < n; i++) {
			ids[i] = sc.nextLine();
		}
		
		String choice = sc.next();
		if(choice.equals("sort1"))
			Arrays.sort(ids);
		for() {
			
		}
	}

}
